﻿using AIPlugin.Model;
using IM.Easy.AIGenServices.IServices;
using Microsoft.AspNetCore.Mvc;

namespace IM.Easy.Api.Controllers.Gen
{
    /// <summary>
    /// 基于AI代码生成器
    /// </summary>
    [Route("api/smartGen")]
    public class SmartCodeController : ControllerBase
    {
        private IAIGenTableService _aIGenTableService;
        public SmartCodeController(IAIGenTableService aIGenTableService)
        {
            _aIGenTableService = aIGenTableService;
        }
        public List<SqlField> GetTable(SqlTableDesc parm)
        {
            return _aIGenTableService.GetTableByAI(parm);
        }
    }
}
